package com.xqzgj.system.domain;

import com.xqzgj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * AI对话历史记录对象 sys_ai_chat
 */
public class SysAiChat extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 对话ID */
    private Long chatId;

    /** 用户ID */
    private Long userId;

    /** 会话ID */
    private String sessionId;

    /** 角色 */
    private String role;

    /** 对话内容 */
    private String content;

    /** 消息tokens数 */
    private Integer tokens;

    /** 消息状态（0正常 1删除） */
    private String status;

    public void setChatId(Long chatId) {
        this.chatId = chatId;
    }

    public Long getChatId() {
        return chatId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setTokens(Integer tokens) {
        this.tokens = tokens;
    }

    public Integer getTokens() {
        return tokens;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("chatId", getChatId())
                .append("userId", getUserId())
                .append("sessionId", getSessionId())
                .append("role", getRole())
                .append("content", getContent())
                .append("tokens", getTokens())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}